#include "doctorselect.h"
#include "ui_doctorselect.h"

DoctorSelect::DoctorSelect(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DoctorSelect)
{
    ui->setupUi(this);
}

DoctorSelect::~DoctorSelect()
{
    delete ui;
}

void DoctorSelect::on_pushButton_check_clicked()
{
    int selectId=ui->listWidget_select->currentRow();
    if(selectId==-1){
        //若未选择患者
        QMessageBox::critical(this,"错误","请选择患者！");
        return;
    }
    qDebug()<<"当前选择第"<<selectId<<"个患者";
    emit select(selectId);
}
